package gjtx2;

import java.util.Scanner;

public class Convert {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入字符串");
        String a=in.next();
        char[] b=a.toCharArray();
        for (char s:b)
            System.out.print(s+",");
        System.out.println("");
        String a1= String.valueOf(b);
        byte[] c=a1.getBytes();
        for (byte s:c)
            System.out.print(s+",");

    }

}
